<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%
	//项目的发布路径，例如:  /rabc
	String path = request.getContextPath();
	/*
	全路径，形式如下: http://127.0.0.1:8001/rbac/
	request.getScheme()      ——> http 获取协议
	request.getServerName()  --> 127.0.0.1 获取服务名
	request.getServerPort()  --> 8001 获取端口号
	path                     --> /rbac 获取访问的路径 路
	*/
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%-- 
	<base/>标签解决路径问题
	参考文章:http://www.cnblogs.com/muqianying/archive/2012/03/16/2400280.html
--%>
<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">
		<meta charset="UTF-8">
		<title>导航栏</title>
	</head>
	<body>
		      <div class="tpl-left-nav tpl-left-nav-hover">
            <div class="tpl-left-nav-title">功能列表</div>
            <div class="tpl-left-nav-list">
                <ul class="tpl-left-nav-menu">
                    <li class="tpl-left-nav-item">
                        <a href="jsp/index" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-home"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <c:forEach items="${sessionScope.fatherList }" var="father">
                    <li class="tpl-left-nav-item"><a href="javascript:;"
                        class="nav-link tpl-left-nav-link-list"> <i
                            class="am-icon-table"></i> <span>${father.menu_name }</span> <i
                            class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                    </a>
                        <ul class="tpl-left-nav-sub-menu"><li>
                        <c:forEach items="${sessionScope.sonList }" var="son">
                                
                                    <c:if test="${father.menu_id eq son.menu_father }">
                            <a href="${son.url }"> <i class="am-icon-angle-right"></i>
                                    <span>${son.menu_name }</span></a> </c:if></c:forEach>
                            </li>
                        </ul></li></c:forEach>
                    <li class="tpl-left-nav-item"><a href="修改密码.html"
                        class="nav-link tpl-left-nav-link-list"> <i
                            class="am-icon-key"></i> <span>修改密码</span>

                    </a></li>
                </ul>
            </div>
        </div>
	</body>
</html>